//
//  HelpBargainViewController.swift
//  TestDemo
//
//  Created by ayin on 2019/3/19.
//  Copyright © 2019 aYin. All rights reserved.
//

import UIKit

class HelpBargainViewController: UIViewController {

    lazy var tbHeaderView: HelpBargainCollectionHeaderView = {
        let view = HelpBargainCollectionHeaderView()
        return view
    }()
    
    var dataModel: CutUserModel = CutUserModel()
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.colorWithHexString("707AFF")
        self.view.addSubview(tbHeaderView)
        tbHeaderView.snp.makeConstraints { (make) in
            make.left.right.equalToSuperview()
            make.top.equalTo(NavigationH)
            make.width.equalTo(screenWidth)
        }
        
        
        dataModel.cutcountmoney = 103.22
        dataModel.salemoney = "499"
        dataModel.minprice = 0.01
        dataModel.ladderPricePrecent = "0.3,0.7"
        tbHeaderView.refreshDatas(dataModel)
    }
}
